package com.ruoyi.cms.utils;

/**
 * 常量工具类
 *
 * @author Linzhaoguan
 * @version V1.0
 * @date 2019年9月11日
 */
public class CoreConst {
    public static final Integer SUCCESS_CODE = 200;
    public static final Integer FAIL_CODE = 500;
    public static final Integer STATUS_VALID = 1;
    public static final Integer STATUS_INVALID = 0;
    public static final Integer PAGE_SIZE = 10;
    public static final Integer TOP_MENU_ID = 0;
    public static final String TOP_MENU_NAME = "顶层菜单";
    public static final String SHIRO_REDIS_SESSION_PREFIX = "pb_cms:session:";
    public static final String SHIRO_REDIS_CACHE_NAME = "shiro_pb_cms";

    public static final String ADMIN_PREFIX = "admin/";

    /**
     * 文件存储服务类型
     * 1：七牛  2：阿里云  3：腾讯云  4：本地
     */
    public static final int UPLOAD_TYPE_QINIUYUN = 1;
    public static final int UPLOAD_TYPE_ALIYUN = 2;
    public static final int UPLOAD_TYPE_QCLOUD = 3;
    public static final int UPLOAD_TYPE_LOCAL = 4;

    /**
     * 微小宝公众号月榜接口地址（2020-03）
     */
    public static String WXB_API_URL = "https://data.wxb.com/rank/month/2020-04/%s?sort=&page=%s&page_size=50&is_new=1";
    public static String WP_POST_EDIT_URL = "http://wp.dj9a9.xyz/wp-admin/post.php?post=%d&action=edit";

    /**
     * toutiao地址
     */
    public static final String TOUTIAO_URL_1 = "https://weitoutiao.zjurl.cn/ugc/share/thread/";
    public static final String TOUTIAO_URL_2 = "https://www.toutiao.com/group/";

    /**
     * 头条文章详情地址
     */
    public static String TOUTIAO_ARTICLE_URL = "https://m.dcdapp.com/motor/m/article/detail?group_id=%s";
}
